<?php

// This is the configuration for yiic console application.
// Any writable CConsoleApplication properties can be configured here.
return array(
	'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
	'name'=>'Yii Blog Demo',

	'preload'=>array('log'),

	// autoloading model and component classes
	'import'=>array(
            'application.models.*',
            'application.components.*',
            'application.components.oss.ALIOSS'
	),
	// application components
	'components'=>array(
            'db'=>array(
                    'connectionString' => 'mysql:host=localhost;dbname=mystery',
                    'emulatePrepare' => true,
                    'username' => 'root',
                    'password' => 'izuf62fycrkoi9wottxq12z',
                    'charset' => 'utf8',
                    'tablePrefix' => '',
            ),
            'errorHandler'=>array(
                    // use 'site/error' action to display errors
                    'errorAction'=>'error',
            ),
            'log'=>array(
                    'class'=>'CLogRouter',
                    'routes'=>array(
                            array(
                                    'class'=>'CFileLogRoute',
                                    'levels'=>'error, warning',
                            ),
                            array(
                                'class'=>'CWebLogRoute',
                                'levels'=>'trace',     //����Ϊtrace
                                'categories'=>'system.db.*' //ֻ��ʾ������ݿ���Ϣ,������ݿ�����,��ݿ�ִ�����
                            ),
                    ),
            ),
	),
);
